package org.seler.spring.ioc.AdditionalCapabilities;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Test_CustomEvents {
	public static void main(String[] args){
		ApplicationContext context = new ClassPathXmlApplicationContext("org/seler/configuration/beans.xml");
		EmailService service = (EmailService)context.getBean("emailService");
		service.sendEmail("john@doe.org", "xxxx");
		new FileSystemXmlApplicationContext();
	}
}
